#pragma once
#ifndef SYPX_ERRORLOGGER
#define SYPX_ERRORLOGGER
#include <iostream>
#include "Singleton.h"
#include "Types.h"

namespace SypX
{
	class SYPXAPI ErrorLogger 
	{
	public:
		enum OutputMode
		{
			LOGFILE,
			CONSOLE,
		};
		static void setOutputMode(OutputMode m);
		static std::ostream& getLogger();
		inline static void print(const String &text)
		{
			#ifdef _DEBUG
				std::cout<<text<<"\n";
			#endif
		}
		
	private:	
		static OutputMode mode;		
	};

}
#endif